import request from '@/utils/request'

// 查询角色列表

export function recursion(id) {
  return request({
    url: '/product/product/recursion/'+id,
    method: 'get',
    data:id
  })
}


export function add(data) {
  return request({
    url: '/product/product/add',
    method: 'post',
    data
  })
}

export function update(data) {
  return request({
    url: '/product/product/update',
    method: 'post',
    data
  })
}


export function delect(id) {
  return request({
    url: '/product/product/delect?id='+id,
    method: 'post',
    data:id
  })
}



export function findProductList(pageNum,pageSize,productVO) {
  return request({
    url: '/product/product/findProductList?pageNum='+pageNum+'&pageSize='+pageSize,
    method: 'post',
    data:productVO
  })
}


